<?php
global $_W, $_GPC;
unset($_SESSION['agentlist']);
$openid   = m('user')->getOpenid(true);
if(allow_commission()==false)
{
header("Location:".create_url('mobile',array('act' => 'shopwap','do' => 'membercenter'))	);
exit;
}

$tabwidth = "50";
$set = globalSetting('commission');
if(empty($set['level']))
{
header("Location:".create_url('mobile',array('do'=>'shop','act'=>'index','m'=>'eshop')));
exit;
}
$member = m('commission')->getInfo($openid);
include $this->template('agentteam');